package com.xueyi.rebar.delivery.manager;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.xueyi.common.web.entity.manager.BaseManager;
import com.xueyi.rebar.delivery.domain.dto.RebarDistributionDeliveryOrderDto;
import com.xueyi.rebar.delivery.mapper.RebarDistributionDeliveryOrderMapper;
import org.springframework.stereotype.Component;

/**
 * 配送单管理 数据封装层
 *
 * @author xueyi
 */
@Component
public class RebarDistributionDeliveryOrderManager extends BaseManager<RebarDistributionDeliveryOrderDto, RebarDistributionDeliveryOrderMapper> {

    public void updateByCurrentFlowInstanceId(RebarDistributionDeliveryOrderDto updateObj) {
        this.baseMapper.update(updateObj, new QueryWrapper<RebarDistributionDeliveryOrderDto>()
                .eq("current_flowInstance_id", updateObj.getCurrentFlowInstanceId()));
    }

}